/**
 * 2009/12/09
 */
package com.googlecode.derby.customize.sample.entity;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.googlecode.derby.customize.DbConst;
import com.googlecode.derby.customize.annotation.Column;
import com.googlecode.derby.customize.annotation.Table;

/**
 * @author osamu tanaka
 */
@Table({ "SAMPLE_PKONLY", DbConst.CREATE })
public class SamplePkOnlyEntity {

    /**
     * SampleEntity userId.
     */
    private String userId;
    /**
     * @return userId
     */
    @Column({ "USER_ID", DbConst.VARCHAR, "128", DbConst.NOT_NULL, DbConst.PK })
    public String getUserId() {
        return this.userId;
    }
    /**
     * @param aUserId
     *            the userId to set
     */
    public void setUserId(final String aUserId) {
        this.userId = aUserId;
    }

    /**
     * @return ToStringBuilder.reflectionToString(this);
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
